<template>
  <a-config-provider
    :theme="{
      token: {
        colorPrimary: '#1890ff',
        borderRadius: 2,
        controlHeight: 28, // 全局控件高度（seed token）
        fontSize: 14
      }
    }"
    :locale="(antdLocaleMap as any)[appStore.language]"
  >
    <RouterView />
  </a-config-provider>
</template>

<script lang="ts" setup>
import { antdLocaleMap } from '@/locales'
import { useAppStore } from '@/stores/modules/app'

defineOptions({ name: 'App' })

// state
const appStore = useAppStore()
</script>
